package com.lzhpo.core.utils;

public class MyStrUtils {
    /**
     * 去掉指定的最后一个字符
     * @param src
     * @param charactor
     * @return
     */
    public static String trimLastChar(String src,String charactor){
        if (src.endsWith(charactor)){
            return  src.substring(0,src.length()-1);
        }
        return src;
    }

}
